package com.jiangjiang.eshop.wms.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * @Author Jianghaowen
 * @Date 2021/9/17
 * @Description: TODO
 * @Version V1.0
 **/
@Data
@TableName("wms_sale_delivery_order_item")
public class SaleDeliveryOrderItemEntity {
    /**
     * 主键
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 销售出库单id
     */
    @TableField("sale_delivery_order_id")
    private Long saleDeliveryOrderId;

    /**
     * 商品sku id
     */
    @TableField("goods_sku_id")
    private Long goodsSkuId;

    /**
     * 商品sku 编码
     */
    @TableField("goods_sku_code")
    private String goodsSkuCode;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 销售属性，机身颜色:白色,内存容量:256G
     */
    @TableField("sale_properties")
    private String saleProperties;

    /**
     * 商品毛重
     */
    @TableField("goods_gross_weight")
    private Double goodsGrossWeight;

    /**
     * 购买数量
     */
    @TableField("purchase_quantity")
    private Long purchaseQuantity;

    /**
     * 购买价格
     */
    @TableField("purchase_price")
    private Double purchasePrice;

    /**
     * 促销活动id
     */
    @TableField("promotion_activity_id")
    private Long promotionActivityId;

    /**
     * 商品长度
     */
    @TableField("goods_length")
    private Double goodsLength;

    /**
     * 商品宽度
     */
    @TableField("goods_width")
    private Double goodsWidth;

    /**
     * 商品高度
     */
    @TableField("goods_height")
    private Double goodsHeight;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
